<%@ page language="java" contentType="text/html;charset=UTF-8"
   	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" href="css/textstyle.css">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>personal_info</title>
<script type="text/javascript">
	function Validate()
	  {
		 
		 var user_name=document.getElementById("txtname").value;
		 var password=document.getElementById("txtpassword").value;
		 if(trim(user_name)==""){
			 alert("Please enter user name");
			 document.getElementById("txtname").focus();
			 return false;
		 }
		 if(trim(password)==""){
			 alert("Please enter password");
			 document.getElementById("txtpassword").focus();
			 return false;
		 }
		 return true;
	 }	
</script>
</head>
<body>
<center>

<div id="caption">ព័ត៌មានផ្ទាល់ខ្លួន</div>
	<table border="0" cellpadding="0" cellspacing="0" width="75%" class="ContentText">
	<form method="get" action="edit_profile.html" onsubmit="return Validate();">
	
		<tr>
		    <td rowspan="4" ><img src="images/profile.jpg" border="0" width="100px" height="100px" ></td>	
		    
			<td id="Label" style="border-top:solid 1px #DDD;">លេខ:</td>	
		<%
			String bgcolor="#EEE";
		%>
		<c:if test="${fn:length(data)>0}">
			<c:forEach var="x" begin="0" end="${fn:length(data)-1}" step="1" varStatus ="status">
				<%
					bgcolor=(bgcolor=="#EEE")?"#FFF":"#EEE";
				%>
							<td id="textS" style="border-top:solid 1px #DDD;"><c:out value="${x+1}"/></td>
							</tr>
							<tr>
							<td id="Label">ឈ្មោះ</td>	
							<td id="textS">
									<c:out value="${data[x].USER_NAME}"/>
							</td>
							</tr>
							<tr>
							<td id="Label">ឈ្មោះសារអេឡិចត្រូនិច</td>	
							<td id="textS">
									<c:out value="${data[x].NBC_EMAIL}"/>
							</td>
							</tr>
							<tr>
							<td id="Label">លេខសំងាត់</td>	
							<td id="textS">
									<c:out value="${data[x].FULL_NAME}"/>
							</td>
							</tr>
							<tr>
							<td><input type="submit" value="កែប្រែព័ត៌មាន"></td>
							</tr>
						
			</c:forEach>
		</c:if>
	</table>

</center>

</body>
</html>